package net.roobook.cms.modules.admin.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import net.roobook.cms.common.entity.SearchEntity;
import net.roobook.cms.common.service.CrudService;
import net.roobook.cms.modules.admin.dao.UserMapper;
import net.roobook.cms.modules.admin.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cos
 * @email 327878610@qq.com
 * @link https://roobook.net
 * @Description 用户Service
 * @date 2023/9/24 15:49
 **/
@Service
public class UserService extends CrudService<UserMapper, User> {
    @Autowired
    private UserMapper userMapper;
    public User getByUserName(String username) {
        User user = userMapper.getByUserName(username);
        return user;
    }

}
